<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>RF24 Library for 16 bit PIC MCUs: rf24.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">RF24 Library for 16 bit PIC MCUs
   </div>
   <div id="projectbrief">This library aims to provide PIC24 and dsPIC users an easy way to interface with the popular RF24 series chips from Nordic Semiconductor. It was developed originally as a direct port of maniacbug&#39;s Arduino RF24 library, but I went beyond that in order to increase speed for my application. The end result is a fast and easy to use library that leverages the improved speed and peripheral features present in 16 bit PIC MCUs.</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">rf24.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="rf24_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#include &lt;xc.h&gt;</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#include &lt;stdint.h&gt;</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#include &lt;stdbool.h&gt;</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;</div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="rf__spi_8h.html">rf_spi.h</a>&quot;</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;</div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#ifndef RF24_H</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#define RF24_H</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;</div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">// instructions</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#define R_REGISTER          0x00</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#define W_REGISTER          0x20</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#define R_RX_PAYLOAD        0x61</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#define W_TX_PAYLOAD        0xA0</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#define FLUSH_TX            0xE1</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#define FLUSH_RX            0xE2</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#define REUSE_TX_PL         0xE3</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#define R_RX_PL_WID         0x60</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#define W_ACK_PAYLOAD       0xA8</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#define W_TX_PAYLOAD_NOACK  0xB0</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#define NOP                 0xFF</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment">// register addresses</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#define CONFIG      0x00</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#define EN_AA       0x01</span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#define EN_RXADDR   0x02</span></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#define SETUP_AW    0x03</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#define SETUP_RETR  0x04</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#define RF_CH       0x05</span></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor">#define RF_SETUP    0x06</span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor">#define STATUS      0x07</span></div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">#define OBSERVE_TX  0x08</span></div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor">#define RPD         0x09</span></div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor">#define RX_ADDR_P0  0x0A</span></div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="preprocessor">#define RX_ADDR_P1  0x0B</span></div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="preprocessor">#define RX_ADDR_P2  0x0C</span></div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="preprocessor">#define RX_ADDR_P3  0x0D</span></div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="preprocessor">#define RX_ADDR_P4  0x0E</span></div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="preprocessor">#define RX_ADDR_P5  0x0F</span></div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="preprocessor">#define TX_ADDR     0x10</span></div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="preprocessor">#define RX_PW_P0    0x11</span></div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="preprocessor">#define RX_PW_P1    0x12</span></div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="preprocessor">#define RX_PW_P2    0x13</span></div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="preprocessor">#define RX_PW_P3    0x14</span></div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="preprocessor">#define RX_PW_P4    0x15</span></div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="preprocessor">#define RX_PW_P5    0x16</span></div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<span class="preprocessor">#define FIFO_STATUS 0x17</span></div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;<span class="preprocessor">#define DYNPD       0x1C</span></div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;<span class="preprocessor">#define FEATURE     0x1D</span></div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;<span class="comment">// helper stuff</span></div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> {RF24_MINUS18_DBM = 0, RF24_MINUS12_DBM, RF24_MINUS6_DBM, RF24_0_DBM} RF24_PWR_LVL;</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> {RF24_250KBPS = 0, RF24_1MBPS, RF24_2MBPS} RF24_SPEED;</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> {RF24_CRC_ONE_BYTE = 0, RF24_CRC_TWO_BYTES, RF24_CRC_DISABLE} RF24_CRC_MODE;</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> {RF24_AW_3BYTES = 0, RF24_AW_4BYTES, RF24_AW_5BYTES} RF24_AW;</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;<span class="preprocessor">#define REG_MASK 0x1F</span></div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;</div>
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="structdebug__registers.html">   69</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    uint8_t config;</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    uint8_t en_aa;</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    uint8_t en_rxaddr;</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    uint8_t setup_aw;</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    uint8_t setup_retr;</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    uint8_t rf_ch;</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    uint8_t rf_setup;</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    uint8_t status;</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    uint8_t observe_tx;</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    uint8_t rpd;</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    uint64_t rx_addr_p0;</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    uint64_t rx_addr_p1;</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    uint8_t rx_addr_p2;</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;    uint8_t rx_addr_p3;</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    uint8_t rx_addr_p4;</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;    uint8_t rx_addr_p5;</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;    uint64_t tx_addr;</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    uint8_t rx_pw_p0;</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    uint8_t rx_pw_p1;</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    uint8_t rx_pw_p2;</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    uint8_t rx_pw_p3;</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    uint8_t rx_pw_p4;</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    uint8_t rx_pw_p5;</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    uint8_t fifo_status;</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    uint8_t dynpd;</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    uint8_t feature;</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    </div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;} <a class="code" href="structdebug__registers.html">debug_registers</a>;</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;<span class="comment">// function prototypes</span></div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;<span class="keywordtype">void</span> <a class="code" href="rf24_8h.html#ade88ae9dca4ba5773f157768b089654b">rf_init</a>(<span class="keyword">volatile</span> uint16_t* m_LAT_REG_CE, uint8_t m_CE_pin, <span class="keyword">volatile</span> uint16_t* m_PORT_REG_IRQ, uint8_t m_IRQ_pin);</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;uint8_t <a class="code" href="rf24_8h.html#afdb9a9a37b15443c3926a93c2c4ac8d8">rf_flushTX</a>();</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;uint8_t <a class="code" href="rf24_8h.html#aa052f0d2b496587d3565ac26e1ec564a">rf_flushRX</a>();</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;<span class="keywordtype">void</span> <a class="code" href="rf24_8h.html#a26abf43b94e7a6dcfab0377e8d0edcf8">rf_openWritePipe</a>(uint64_t pipeAddr);</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;<span class="keywordtype">void</span> <a class="code" href="rf24_8h.html#a87e27c94d415c73e4e384e1dfd7fd828">rf_openReadPipe</a>(uint8_t num, uint64_t pipeAddr);</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;<span class="keywordtype">void</span> <a class="code" href="rf24_8h.html#a6869e60b2cf28ea67afe9948029187c2">rf_startListening</a>();</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;<span class="keywordtype">void</span> <a class="code" href="rf24_8h.html#a3a76f0759f80e4a2562d1dbc7e031e0c">rf_stopListening</a>();</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;<span class="keywordtype">bool</span> <a class="code" href="rf24_8h.html#a6fc62bf762c65246d1f26d0938a2842e">rf_available</a>(uint8_t* pipeNum);</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;</div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;<span class="keywordtype">bool</span> <a class="code" href="rf24_8h.html#aba6a2f4099336a083a4bef6a8a029171">rf_read</a>(uint8_t* buf, uint8_t len);</div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;</div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;<span class="keywordtype">void</span> <a class="code" href="rf24_8h.html#a169251768e6323a4e58a6405ea52447e">rf_write</a>(<span class="keyword">const</span> uint8_t* buf, uint8_t len);</div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;</div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;</div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;uint8_t <a class="code" href="rf24_8h.html#a8b12fb5cf753495e1b3cf8db400f1446">rf_reuseTXPayload</a>();</div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;</div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;</div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;<span class="keywordtype">void</span> <a class="code" href="rf24_8h.html#a7021ef77c93a654981936e721c8d696a">rf_enableDynamicPayloads</a>(<span class="keywordtype">bool</span> enable);</div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;</div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;</div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;<span class="keywordtype">void</span> <a class="code" href="rf24_8h.html#a47d90c461f0f27470412d1f85851c403">rf_enableACKPayloads</a>(<span class="keywordtype">bool</span> enable);</div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;</div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;</div>
<div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;uint8_t <a class="code" href="rf24_8h.html#aa97990f92518e4bf5775545ad5ac0a9d">rf_handleIRQ</a>();</div>
<div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;</div>
<div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;</div>
<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;uint8_t <a class="code" href="rf24_8h.html#a7ee45f271955e18fd709ec8b34f6d2e0">rf_readRXPayloadWidth</a>();</div>
<div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;</div>
<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;</div>
<div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;<span class="keywordtype">void</span> <a class="code" href="rf24_8h.html#a2909f1eff3f9d347c8b5814403587ff1">rf_setStaticPayloadWidth</a>(<span class="keyword">const</span> uint8_t num, <span class="keyword">const</span> uint8_t width);</div>
<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;</div>
<div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;</div>
<div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;uint8_t <a class="code" href="rf24_8h.html#ad618c6c38cd35559a14e08ee8166f8a0">rf_writeACKPayload</a>(uint8_t pipe, uint8_t* buf, uint8_t len);</div>
<div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;</div>
<div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;</div>
<div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;uint8_t <a class="code" href="rf24_8h.html#aecbf9037916c43fa83aa84b848e9d294">rf_readStatus</a>();</div>
<div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;</div>
<div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;</div>
<div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;<span class="keywordtype">void</span> <a class="code" href="rf24_8h.html#ac5aeea99b669e584adfed01636bbd6e1">rf_setPALevel</a>(RF24_PWR_LVL pwr);</div>
<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;</div>
<div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;</div>
<div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;<span class="keywordtype">void</span> <a class="code" href="rf24_8h.html#a84528f81dc239d2180c5d5e43a9a1a8d">rf_setDataRate</a>(RF24_SPEED speed);</div>
<div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;</div>
<div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;</div>
<div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;<span class="keywordtype">void</span> <a class="code" href="rf24_8h.html#ad9ea67f9115a347305f880cb3621d491">rf_setChannel</a>(uint8_t channel);</div>
<div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;</div>
<div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;</div>
<div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;<span class="keywordtype">void</span> <a class="code" href="rf24_8h.html#a3d9ef6c435074c7265b55aafc1782d65">rf_setCRCMode</a>(RF24_CRC_MODE mode);</div>
<div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;</div>
<div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;</div>
<div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;<span class="keywordtype">void</span> <a class="code" href="rf24_8h.html#a6205fea4db38f346c1aee92146d9ca03">rf_setNoACK</a>(<span class="keywordtype">bool</span> noack);</div>
<div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;</div>
<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;</div>
<div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;<span class="keywordtype">void</span> <a class="code" href="rf24_8h.html#ad9cccc85b8ac2f7cd26f1e1bea755fc1">rf_setRetries</a>(uint8_t delay, uint8_t count);</div>
<div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;</div>
<div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;</div>
<div class="line"><a name="l00385"></a><span class="lineno">  385</span>&#160;<span class="keywordtype">void</span> <a class="code" href="rf24_8h.html#acbfb0f504d21f8dbb537b800442e4bb8">rf_setAddressWidth</a>(RF24_AW width);</div>
<div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;</div>
<div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;</div>
<div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;<span class="keywordtype">bool</span> <a class="code" href="rf24_8h.html#a211159ab2baabed6354fc93ee2b73d8f">rf_testRPD</a>();</div>
<div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160;</div>
<div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160;</div>
<div class="line"><a name="l00407"></a><span class="lineno">  407</span>&#160;<span class="keywordtype">void</span> <a class="code" href="rf24_8h.html#a3758c3d38e7b4880158a27b71ab7e013">rf_sendCarrier</a>(<span class="keywordtype">bool</span> enable);</div>
<div class="line"><a name="l00408"></a><span class="lineno">  408</span>&#160;</div>
<div class="line"><a name="l00409"></a><span class="lineno">  409</span>&#160;</div>
<div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160;<span class="keywordtype">void</span> <a class="code" href="rf24_8h.html#a6174d4a38cae6ea268562138fb3a838d">rf_debug</a>(<a class="code" href="structdebug__registers.html">debug_registers</a>* reg);</div>
<div class="line"><a name="l00419"></a><span class="lineno">  419</span>&#160;</div>
<div class="line"><a name="l00420"></a><span class="lineno">  420</span>&#160;<span class="preprocessor">#endif  </span><span class="comment">/* RF24_H */</span><span class="preprocessor"></span></div>
<div class="ttc" id="structdebug__registers_html"><div class="ttname"><a href="structdebug__registers.html">debug_registers</a></div><div class="ttdoc">structure for storing the values of all rf24 module registers (for debugging) </div><div class="ttdef"><b>Definition:</b> rf24.h:69</div></div>
<div class="ttc" id="rf24_8h_html_acbfb0f504d21f8dbb537b800442e4bb8"><div class="ttname"><a href="rf24_8h.html#acbfb0f504d21f8dbb537b800442e4bb8">rf_setAddressWidth</a></div><div class="ttdeci">void rf_setAddressWidth(RF24_AW width)</div><div class="ttdef"><b>Definition:</b> rf24.c:463</div></div>
<div class="ttc" id="rf24_8h_html_ad9cccc85b8ac2f7cd26f1e1bea755fc1"><div class="ttname"><a href="rf24_8h.html#ad9cccc85b8ac2f7cd26f1e1bea755fc1">rf_setRetries</a></div><div class="ttdeci">void rf_setRetries(uint8_t delay, uint8_t count)</div><div class="ttdef"><b>Definition:</b> rf24.c:458</div></div>
<div class="ttc" id="rf24_8h_html_a47d90c461f0f27470412d1f85851c403"><div class="ttname"><a href="rf24_8h.html#a47d90c461f0f27470412d1f85851c403">rf_enableACKPayloads</a></div><div class="ttdeci">void rf_enableACKPayloads(bool enable)</div><div class="ttdef"><b>Definition:</b> rf24.c:316</div></div>
<div class="ttc" id="rf24_8h_html_a3d9ef6c435074c7265b55aafc1782d65"><div class="ttname"><a href="rf24_8h.html#a3d9ef6c435074c7265b55aafc1782d65">rf_setCRCMode</a></div><div class="ttdeci">void rf_setCRCMode(RF24_CRC_MODE mode)</div><div class="ttdef"><b>Definition:</b> rf24.c:433</div></div>
<div class="ttc" id="rf24_8h_html_afdb9a9a37b15443c3926a93c2c4ac8d8"><div class="ttname"><a href="rf24_8h.html#afdb9a9a37b15443c3926a93c2c4ac8d8">rf_flushTX</a></div><div class="ttdeci">uint8_t rf_flushTX()</div><div class="ttdef"><b>Definition:</b> rf24.c:103</div></div>
<div class="ttc" id="rf24_8h_html_aa052f0d2b496587d3565ac26e1ec564a"><div class="ttname"><a href="rf24_8h.html#aa052f0d2b496587d3565ac26e1ec564a">rf_flushRX</a></div><div class="ttdeci">uint8_t rf_flushRX()</div><div class="ttdef"><b>Definition:</b> rf24.c:114</div></div>
<div class="ttc" id="rf24_8h_html_a3a76f0759f80e4a2562d1dbc7e031e0c"><div class="ttname"><a href="rf24_8h.html#a3a76f0759f80e4a2562d1dbc7e031e0c">rf_stopListening</a></div><div class="ttdeci">void rf_stopListening()</div><div class="ttdef"><b>Definition:</b> rf24.c:192</div></div>
<div class="ttc" id="rf24_8h_html_a7ee45f271955e18fd709ec8b34f6d2e0"><div class="ttname"><a href="rf24_8h.html#a7ee45f271955e18fd709ec8b34f6d2e0">rf_readRXPayloadWidth</a></div><div class="ttdeci">uint8_t rf_readRXPayloadWidth()</div><div class="ttdef"><b>Definition:</b> rf24.c:332</div></div>
<div class="ttc" id="rf24_8h_html_a7021ef77c93a654981936e721c8d696a"><div class="ttname"><a href="rf24_8h.html#a7021ef77c93a654981936e721c8d696a">rf_enableDynamicPayloads</a></div><div class="ttdeci">void rf_enableDynamicPayloads(bool enable)</div><div class="ttdef"><b>Definition:</b> rf24.c:299</div></div>
<div class="ttc" id="rf24_8h_html_a6869e60b2cf28ea67afe9948029187c2"><div class="ttname"><a href="rf24_8h.html#a6869e60b2cf28ea67afe9948029187c2">rf_startListening</a></div><div class="ttdeci">void rf_startListening()</div><div class="ttdef"><b>Definition:</b> rf24.c:163</div></div>
<div class="ttc" id="rf24_8h_html_a6205fea4db38f346c1aee92146d9ca03"><div class="ttname"><a href="rf24_8h.html#a6205fea4db38f346c1aee92146d9ca03">rf_setNoACK</a></div><div class="ttdeci">void rf_setNoACK(bool noack)</div><div class="ttdef"><b>Definition:</b> rf24.c:449</div></div>
<div class="ttc" id="rf24_8h_html_a6174d4a38cae6ea268562138fb3a838d"><div class="ttname"><a href="rf24_8h.html#a6174d4a38cae6ea268562138fb3a838d">rf_debug</a></div><div class="ttdeci">void rf_debug(debug_registers *reg)</div><div class="ttdef"><b>Definition:</b> rf24.c:509</div></div>
<div class="ttc" id="rf24_8h_html_a87e27c94d415c73e4e384e1dfd7fd828"><div class="ttname"><a href="rf24_8h.html#a87e27c94d415c73e4e384e1dfd7fd828">rf_openReadPipe</a></div><div class="ttdeci">void rf_openReadPipe(uint8_t num, uint64_t pipeAddr)</div><div class="ttdef"><b>Definition:</b> rf24.c:133</div></div>
<div class="ttc" id="rf24_8h_html_ac5aeea99b669e584adfed01636bbd6e1"><div class="ttname"><a href="rf24_8h.html#ac5aeea99b669e584adfed01636bbd6e1">rf_setPALevel</a></div><div class="ttdeci">void rf_setPALevel(RF24_PWR_LVL pwr)</div><div class="ttdef"><b>Definition:</b> rf24.c:383</div></div>
<div class="ttc" id="rf24_8h_html_a3758c3d38e7b4880158a27b71ab7e013"><div class="ttname"><a href="rf24_8h.html#a3758c3d38e7b4880158a27b71ab7e013">rf_sendCarrier</a></div><div class="ttdeci">void rf_sendCarrier(bool enable)</div><div class="ttdef"><b>Definition:</b> rf24.c:483</div></div>
<div class="ttc" id="rf24_8h_html_a84528f81dc239d2180c5d5e43a9a1a8d"><div class="ttname"><a href="rf24_8h.html#a84528f81dc239d2180c5d5e43a9a1a8d">rf_setDataRate</a></div><div class="ttdeci">void rf_setDataRate(RF24_SPEED speed)</div><div class="ttdef"><b>Definition:</b> rf24.c:407</div></div>
<div class="ttc" id="rf24_8h_html_aba6a2f4099336a083a4bef6a8a029171"><div class="ttname"><a href="rf24_8h.html#aba6a2f4099336a083a4bef6a8a029171">rf_read</a></div><div class="ttdeci">bool rf_read(uint8_t *buf, uint8_t len)</div><div class="ttdef"><b>Definition:</b> rf24.c:213</div></div>
<div class="ttc" id="rf24_8h_html_ad618c6c38cd35559a14e08ee8166f8a0"><div class="ttname"><a href="rf24_8h.html#ad618c6c38cd35559a14e08ee8166f8a0">rf_writeACKPayload</a></div><div class="ttdeci">uint8_t rf_writeACKPayload(uint8_t pipe, uint8_t *buf, uint8_t len)</div><div class="ttdef"><b>Definition:</b> rf24.c:367</div></div>
<div class="ttc" id="rf24_8h_html_aecbf9037916c43fa83aa84b848e9d294"><div class="ttname"><a href="rf24_8h.html#aecbf9037916c43fa83aa84b848e9d294">rf_readStatus</a></div><div class="ttdeci">uint8_t rf_readStatus()</div><div class="ttdef"><b>Definition:</b> rf24.c:376</div></div>
<div class="ttc" id="rf24_8h_html_a6fc62bf762c65246d1f26d0938a2842e"><div class="ttname"><a href="rf24_8h.html#a6fc62bf762c65246d1f26d0938a2842e">rf_available</a></div><div class="ttdeci">bool rf_available(uint8_t *pipeNum)</div><div class="ttdef"><b>Definition:</b> rf24.c:199</div></div>
<div class="ttc" id="rf24_8h_html_a2909f1eff3f9d347c8b5814403587ff1"><div class="ttname"><a href="rf24_8h.html#a2909f1eff3f9d347c8b5814403587ff1">rf_setStaticPayloadWidth</a></div><div class="ttdeci">void rf_setStaticPayloadWidth(const uint8_t num, const uint8_t width)</div><div class="ttdef"><b>Definition:</b> rf24.c:351</div></div>
<div class="ttc" id="rf24_8h_html_a211159ab2baabed6354fc93ee2b73d8f"><div class="ttname"><a href="rf24_8h.html#a211159ab2baabed6354fc93ee2b73d8f">rf_testRPD</a></div><div class="ttdeci">bool rf_testRPD()</div><div class="ttdef"><b>Definition:</b> rf24.c:476</div></div>
<div class="ttc" id="rf24_8h_html_ad9ea67f9115a347305f880cb3621d491"><div class="ttname"><a href="rf24_8h.html#ad9ea67f9115a347305f880cb3621d491">rf_setChannel</a></div><div class="ttdeci">void rf_setChannel(uint8_t channel)</div><div class="ttdef"><b>Definition:</b> rf24.c:428</div></div>
<div class="ttc" id="rf__spi_8h_html"><div class="ttname"><a href="rf__spi_8h.html">rf_spi.h</a></div><div class="ttdoc">Header file declaring various SPI functions for use with the RF24 LIbrary. </div></div>
<div class="ttc" id="rf24_8h_html_a26abf43b94e7a6dcfab0377e8d0edcf8"><div class="ttname"><a href="rf24_8h.html#a26abf43b94e7a6dcfab0377e8d0edcf8">rf_openWritePipe</a></div><div class="ttdeci">void rf_openWritePipe(uint64_t pipeAddr)</div><div class="ttdef"><b>Definition:</b> rf24.c:125</div></div>
<div class="ttc" id="rf24_8h_html_ade88ae9dca4ba5773f157768b089654b"><div class="ttname"><a href="rf24_8h.html#ade88ae9dca4ba5773f157768b089654b">rf_init</a></div><div class="ttdeci">void rf_init(volatile uint16_t *m_LAT_REG_CE, uint8_t m_CE_pin, volatile uint16_t *m_PORT_REG_IRQ, uint8_t m_IRQ_pin)</div><div class="ttdef"><b>Definition:</b> rf24.c:35</div></div>
<div class="ttc" id="rf24_8h_html_a8b12fb5cf753495e1b3cf8db400f1446"><div class="ttname"><a href="rf24_8h.html#a8b12fb5cf753495e1b3cf8db400f1446">rf_reuseTXPayload</a></div><div class="ttdeci">uint8_t rf_reuseTXPayload()</div><div class="ttdef"><b>Definition:</b> rf24.c:288</div></div>
<div class="ttc" id="rf24_8h_html_aa97990f92518e4bf5775545ad5ac0a9d"><div class="ttname"><a href="rf24_8h.html#aa97990f92518e4bf5775545ad5ac0a9d">rf_handleIRQ</a></div><div class="ttdeci">uint8_t rf_handleIRQ()</div><div class="ttdef"><b>Definition:</b> rf24.c:323</div></div>
<div class="ttc" id="rf24_8h_html_a169251768e6323a4e58a6405ea52447e"><div class="ttname"><a href="rf24_8h.html#a169251768e6323a4e58a6405ea52447e">rf_write</a></div><div class="ttdeci">void rf_write(const uint8_t *buf, uint8_t len)</div><div class="ttdef"><b>Definition:</b> rf24.c:229</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Feb 20 2015 20:21:26 for RF24 Library for 16 bit PIC MCUs by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>
